package day06.homework.demo1;

public class TestShape {
    public static void main(String[] args) {
        Shape[] shapes = new Shape[3];
        Shape c = new Circle(10.0d);
        Shape r = new Rect(10,5);

        Shape s = new Square(10);

        shapes[0] = c;
        shapes[1] = r;
        shapes[2] = s;

        ShapeBiz biz = new ShapeBiz();
        for(Shape shape : shapes){
            biz.printArea(shape);
            biz.printGirth(shape);
            System.out.println("====");
        }
    }
}
